{% extends "menu.html" %}
{% block content %}

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">



            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2><a href="/cloud/list/?server=tencent&status=refresh">刷新主机列表</a>  | <a href="/cloud/list/?server=tencent&status=show">查看主机列表</a>
                    | <a href="/cloud/list/?server=tencent&status=project">项目</a>|<a href="/cloud/list/?server=tencent&status=del">一键清理</a> </h2>

                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">


                    <table class="sui-table table-bordered table-sideheader">
                      <thead>
                        <tr>
                            <th>id</th>
                            <th>name_id</th>
                            <th>name</th>
                            <th>count</th>
                            <th>管理</th>

                        </tr>
                      </thead>
                      <tbody>
                      {% for cvm in project_list %}
                        <tr>
                          <td>{{ cvm.cvm_ProjectId__id }}</td>
                          <td>{{ cvm.cvm_ProjectId__name_id }}</td>
                          <td>{{ cvm.cvm_ProjectId__name }}</td>
                          <td>{{ cvm.count }}</td>
                            <td><a href="/cloud/list/?server=tencent&status=project&id={{ cvm.cvm_ProjectId__name_id }}&action=rename">更新项目名称</a> |
                                <a href="/cloud/list/?server=tencent&status=project&id={{ cvm.cvm_ProjectId__name_id }}&action=del">删除项目</a></td>
                        </tr>
                        {% endfor %}
                      </tbody>
                    </table>
                  </div>
                </div>
              </div>
            </div>


          </div>
        </div>
{% endblock %}